var e = require, t = module, n = exports;

Object.defineProperty(n, "__esModule", {
    value: !0
});

var o = e("GameConfig"), i = e("GameData"), a = e("Global"), r = e("DrawManager"), s = function() {
    function e() {}
    return e.getInstance = function() {
        return this._manager || (this._manager = new e()), this._manager;
    }, e.prototype.check = function() {
        0 != i.GD.olympicDrawTime || GA.isByteDance() || a.G.queue.push({
            name: "olympic",
            type: 1
        });
    }, e.prototype.getReward = function(e) {
        return e < o.GC.olympicRewardList.length ? o.GC.olympicRewardList[e] : o.GC.olympicRewardList[o.GC.olympicRewardList.length - 1];
    }, e.prototype.getDraw = function() {
        var t = o.GC.olympicDrawConfigList.filter(function(e) {
            return e.count == i.GD.olympicDrawTotal;
        });
        if (0 < t.length) {
            var e = o.GC.olympicRewardList.filter(function(e) {
                return e.data.rare == t[0].rare;
            });
            if (0 < e.length) return e[r.default.getInstance().getDraw2(e)];
        }
        return o.GC.olympicRewardList[r.default.getInstance().getDraw2(o.GC.olympicRewardList)];
    }, e._manager = null, e;
}();

n.default = s;